#ifndef HANWIDGET_H
#define HANWIDGET_H

#include <QWidget>

class HanWidget : public QWidget {
    Q_OBJECT
public:
    explicit HanWidget(QWidget* parent = nullptr);
    QSize sizeHint() const override;
    void setFont(const QFont& f) {
        m_font = f;
        updateGeometry();
        update();
    }

protected:
    void paintEvent(QPaintEvent*) override;

signals:

private:
    QFont m_font;
    QList<QChar> m_chars;
    int m_cols = 64;
};

#endif  // HANWIDGET_H
